package com.ye.study.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "thread.pool")
public class ThreadPoolConfigProperties {
    //核心线程数
    private int coraPoolSize;
    //最大线程数
    private int maxPoolSize;
    //队列最大长度
    private int queueCapacity;
    //线程池维护线程所允许最大空闲时间
    private int keepAliveSenconds;
}
